﻿using Microsoft.EntityFrameworkCore;
using Abp.Zero.EntityFrameworkCore;
using AbpProject.Authorization.Roles;
using AbpProject.Authorization.Users;
using AbpProject.MultiTenancy;

namespace AbpProject.EntityFrameworkCore
{
    public class AbpProjectDbContext : AbpZeroDbContext<Tenant, Role, User, AbpProjectDbContext>
    {
        /* Define a DbSet for each entity of the application */
        /// <summary>
        /// 角色于菜单元素权限表
        /// </summary>
        public virtual DbSet<AbpRoleMenu> AbpRoleMenu { get; set; }
        /// <summary>
        /// 验证码校验表
        /// </summary>
        public virtual DbSet<AbpRegisterCheck> AbpRegisterCheck { get; set; }

        /// <summary>
        /// 菜单表
        /// </summary>
        public virtual DbSet<AbpMenu> AbpMenu { get; set; }

        #region 微信公众号

        /// <summary>
        /// 微信公众号菜单表
        /// </summary>
        public virtual DbSet<MPMenu> MPMenu { get; set; }

        #endregion


        #region 小程序
        public virtual DbSet<ShortEssay> ShortEssay { get; set; }
        #endregion
        public AbpProjectDbContext(DbContextOptions<AbpProjectDbContext> options)
            : base(options)
        {
        }
    }
}
